home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
tcclib.exe
/
SCRUP.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-07-18
|
359 b
|
19 lines
#include <dos.h>
extern unsigned char A_NORMAL;
void TcclibInitialize( void );
void ScrollUp( int x, int y, int xx, int yy, int n )
{
union REGS regs;
TcclibInitialize();
regs.x.cx = ( --y << 8 ) + --x;
regs.x.dx = ( --yy << 8 ) + --xx;
regs.x.ax = n % 256;
regs.h.ah = 0x06;
regs.h.bh = A_NORMAL;
int86( 0x10, ®s, ®s );
}